﻿using StudentCouncil.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StudentCouncil.DAL.DAO
{
   public class DongtaiDAO
    {
        public static List<Grade> GetDtList()
        {
            using (StudentContext db = new StudentContext())
            {
                return db.Grade.ToList();
            }
        }
        public static bool AddDongtai(Grade entity)
        {
            using (StudentContext db = new StudentContext())
            {
                db.Grade.Add(entity);
                db.SaveChanges();
                return true;
            }
        }
    }
}
